home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / scoobycastillotenebroso.swf / scripts / DefineButton2_1420 / BUTTONCONDACTION on(release, releaseOutside).as < prev   
Text File  |  2007-10-01  |  450b  |  19 lines

  1. on(release, releaseOutside){
  2.    if(this.hitTest(_root.environnement2.trap.hit_trap))
  3.    {
  4.       this.swapDepths(_parent.swap);
  5.       _root.environnement2.trap.play();
  6.       stopDrag();
  7.       set("_root.controler:drag_this",false);
  8.       this._visible = false;
  9.    }
  10.    else
  11.    {
  12.       this.swapDepths(_parent.swap);
  13.       stopDrag();
  14.       set("_root.controler:drag_this",false);
  15.       this._x = 287.45;
  16.       this._y = -3.9;
  17.    }
  18. }
  19.